<!--
  @author yangjiangming
  @date 2018-12-10 20:40:28
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html th:replace="~{work/modify/common/layout :: layout('派单撤回', ~{::title}, ~{::content}, ~{::script})}">
<head>
    <title>工单管理-派单撤回</title>
</head>
<body>

<div th:fragment="content" style="text-align: center">
    <form action="/work/modify/save/distribute/back.action" class="layui-form">
        <input type="hidden" id="casSign" name="casSign" th:value="${casSign}"/>
        <input name="orderId" th:value="${distributeBackVO.orderId}" type="hidden"/>
        <input name="workId" th:value="${distributeBackVO.workId}" type="hidden"/>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label d-label">撤回缘由</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" maxlength="500" name="operatorRemark" lay-verify="length|validateReamrk" placeholder="请输入"></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            确定需要撤回工单吗？撤回后，工程师app端将无法查看对应工单，同时将清空：服务项目、人工优惠等信息。
        </div>
        <div class="center-block" style="color: red;" th:if="${distributeBackVO.hasPart}">
            注意：工单中有已使用的配件。
        </div>
        <div class="layui-form-item" style="text-align: center;margin-top: 30px;">
            <div class="layui-inline">
                <input type="button" value="保存" class="layui-btn layui-btn-normal" lay-submit/>
            </div>
        </div>
    </form>
</div>

<script th:inline="javascript">
    var json = {
        tips: [[${tips}]]
    };
    var layuiModel = {
        oms_work_modify_distribute_back: "work/modify/zmn.oms.work.modify.distributeback"
    };
</script>

</body>
</html>